package indi.zhifa.study2024.class002.busy.generalTest.business.curd.bill.consign.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import indi.zhifa.study2024.class002.busy.generalTest.enums.bill.EBillStatus;
import indi.zhifa.study2024.class002.busy.generalTest.enums.bill.consign.EConsignType;
import indi.zhifa.study2024.core.mpenhence.entity.po.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * <p>
 * 主表
 * </p>
 *
 * @author 织法
 * @since 2024-09-16
 */
@Data
@TableName("consign_head")
@Schema(title = "ConsignHeadEntity对象", description = "主表")
public class ConsignHeadEntity extends BaseEntity {

    @Schema(title = "单据Id，唯一的一个字符串Id，每个单据有一个")
    private String billNo;

    @Schema(title = "单据类型：1是销售单，2是退货单，3是还货单，4是换货单")
    private EConsignType billType;

    @Schema(title = "单据状态：1草稿，2提交，3审核，4拒绝，5作废")
    private EBillStatus billStatus;

    @Schema(title = "创建订单是日期")
    private Long billTime;

    @Schema(title = "门店的Id")
    private Long customerId;

    @Schema(title = "门店的名称")
    private String customerName;

    @Schema(title = "业务员的Id")
    private Long salesId;

    @Schema(title = "业务员的昵称")
    private String salesName;

    @Schema(title = "总价格")
    private Long amount;

    @Schema(title = "总货值")
    private Long cost;

    @Schema(title = "总利润")
    private Long profit;


}
